// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'platform_';

export default {
  path: '/admin/platform',
  name: 'platform',
  header: 'platform',
  redirect: {
    name: `${pre}archives`,
  },
  component: BasicLayout,
  children: [
	{
	  path: 'register',
	  name: `${pre}register`,
	  meta: {
	    auth: ['admin-platform-register'],
	    title: '登记挂号',
	  },
	  component: () => import('@/pages/platform/register/index'),
	},
	{
	  path: 'archives',
	  name: `${pre}archives`,
	  meta: {
	    auth: ['admin-platform-archives'],
	    title: '档案管理',
	  },
	  component: () => import('@/pages/platform/archives/index'),
	},
	{
	  path: 'docutype',
	  name: `${pre}docutype`,
	  meta: {
	    auth: ['admin-platform-docutype'],
	    title: '证件类型',
	  },
	  component: () => import('@/pages/platform/docutype/index'),
	},
	{
	  path: 'emerpeople',
	  name: `${pre}emerpeople`,
	  meta: {
	    auth: ['admin-platform-emerpeople'],
	    title: '紧急联系人',
	  },
	  component: () => import('@/pages/platform/emerpeople/index'), 
	},
	{
	  path: 'medirecord',
	  name: `${pre}medirecord`,
	  meta: {
	    auth: ['admin-platform-medirecord'],
	    title: '待诊患者',
	  },
	  component: () => import('@/pages/platform/medirecord/index'), 
	},
	{
	  path: 'subcate',
	  name: `${pre}subcate`,
	  meta: {
	    auth: ['admin-platform-subcate'],
	    title: '预约类型',
	  },
	  component: () => import('@/pages/platform/subcate/index'), 
	},
	{
	  path: 'subcateitem',
	  name: `${pre}subcateitem`,
	  meta: {
	    auth: ['admin-platform-subcateitem'],
	    title: '就诊事项',
	  },
	  component: () => import('@/pages/platform/subcateitem/index'), 
	},
	{
	  path: 'subscribe',
	  name: `${pre}subscribe`,
	  meta: {
	    auth: ['admin-platform-subscribe'],
	    title: '预约管理',
	  },
	  component: () => import('@/pages/platform/subscribe/index'), 
	},
	{
	  path: 'group',
	  name: `${pre}group`,
	  meta: {
	    auth: ['admin-platform-group'],
	    title: '分组管理',
	  },
	  component: () => import('@/pages/platform/usergroup/index'), 
	},
	{
	  path: 'rectype',
	  name: `${pre}rectype`,
	  meta: {
	    auth: ['admin-platform-rectype'],
	    title: '推荐来源',
	  },
	  component: () => import('@/pages/platform/rectype/index'), 
	},
	{
	  path: 'source',
	  name: `${pre}source`,
	  meta: {
	    auth: ['admin-platform-source'],
	    title: '客户来源',
	  },
	  component: () => import('@/pages/platform/usersource/index'), 
	},
	{
	  path: 'tag',
	  name: `${pre}tag`,
	  meta: {
	    auth: ['admin-platform-tag'],
	    title: '标签管理',
	  },
	  component: () => import('@/pages/platform/usertag/index'), 
	},
	{
	  path: 'department',
	  name: `${pre}department`,
	  meta: {
	    auth: ['admin-platform-department'],
	    title: '科室管理',
	  },
	  component: () => import('@/pages/platform/department/index'), 
	},
	{
	  path: 'regamount',
	  name: `${pre}regamount`,
	  meta: {
	    auth: ['admin-platform-regamount'],
	    title: '挂号费用',
	  },
	  component: () => import('@/pages/platform/regamount/index'), 
	},
	{
	  path: 'room',
	  name: `${pre}room`,
	  meta: {
	    auth: ['admin-platform-room'],
	    title: '诊室管理',
	  },
	  component: () => import('@/pages/platform/room/index'), 
	},
	{
	  path: 'schetype',
	  name: `${pre}schetype`,
	  meta: {
	    auth: ['admin-platform-schetype'],
	    title: '排班方式',
	  },
	  component: () => import('@/pages/platform/schetype/index'), 
	},
	{
	  path: 'schedule',
	  name: `${pre}schedule`,
	  meta: {
	    auth: ['admin-platform-schedule'],
	    title: '排班管理',
	  },
	  component: () => import('@/pages/platform/schedule/index'), 
	},
	{
	  path: 'record',
	  name: `${pre}record`,
	  meta: {
	    auth: ['admin-platform-record'],
	    title: '就诊记录',
	  },
	  component: () => import('@/pages/platform/record/index'), 
	},
	{
	  path: 'history/:id?',
	  name: `${pre}history`,
	  meta: {
	    auth: ['admin-platform-history'],
	    title: '诊疗记录',
	  },
	  component: () => import('@/pages/platform/history/index'), 
	},
	{
	  path: 'banner',
	  name: `${pre}banner`,
	  meta: {
	    auth: ['admin-platform-banner'], 
	    title: '轮播管理',
	  },
	  component: () => import('@/pages/platform/banner/index'),
	},
	{
	  path: 'salelist',
	  name: `${pre}salelist`,
	  meta: {
	    auth: ['admin-platform-salelist'], 
	    title: '销售管理',
	  },
	  component: () => import('@/pages/platform/sale/list/index'),
	},
	{
	  path: 'cate',
	  name: `${pre}cate`,
	  meta: {
	    auth: ['admin-platform-cate'], 
	    title: '分类管理',
	  },
	  component: () => import('@/pages/platform/sale/cate/index'),
	},
	{
	  path: 'product',
	  name: `${pre}product`,
	  meta: {
	    auth: ['admin-platform-product'], 
	    title: '产品管理',
	  },
	  component: () => import('@/pages/platform/sale/product/index'),
	},
	{
	  path: 'service',
	  name: `${pre}service`,
	  meta: {
	    auth: ['admin-platform-service'], 
	    title: '服务管理',
	  },
	  component: () => import('@/pages/platform/sale/service/index'),
	},
	{
	  path: 'company',
	  name: `${pre}company`,
	  meta: {
	    auth: ['admin-platform-company'], 
	    title: '厂商管理',
	  },
	  component: () => import('@/pages/platform/company/index'),
	}
  ],
};
